package com.exchange.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 *
 * @TableName power_status
 */
@TableName(value ="power_status")
@Data
public class PowerStatus implements Serializable {
    /**
     * 电柜表
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 所属电柜
     */
    @TableField(value = "pid")
    private Long pid;

    /**
     * 电柜编号
     */
    @TableField(value = "pname")
    private String pname;

    /**
     * 0：正常1：损坏
     */
    @TableField(value = "status")
    private Integer status;

    /**
     *
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
